const { defineConfig } = require("@vue/cli-service");
const path = require("path");
function resolve(dir) {
  console.log(__dirname);
  return path.join(__dirname, dir);
}
module.exports = defineConfig({
  chainWebpack: (config) => {
    // 配置路径别名
    config.resolve.alias.set("@", resolve("src")); // key,value自行定义，比如.set('@@', resolve('src/components'))
  },
});
